
import request from "@/utils/request.js";
// 获取我的订单
export function addOrUpdate(data) {
	var type = data.id?'update':'add'
  return request({
    method: "POST",
    url: '/applet/invoice/'+type,
	data
  });
}

export function page() {
  return request({
    method: "GET",
    url: '/applet/invoice/allInvoiceInfo'
  });
}
export function getInvoiceByOrderNum(data) {
  return request({
    method: "GET",
    url: '/applet/order/getInvoiceByOrderNum/'+data
  });
}
export function del(data) {
  return request({
    method: "POST",
    url: '/applet/invoice/delete',
	data
  });
}